package com.naiterui.ehp.bs.patient.prodocl.scale;

import java.util.Date;
import java.util.List;

import org.springframework.data.annotation.Id;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

/**
 * 金数据量表数据
 * @author wangchuan
 * @since V2.19.0
 */
public class ScaleInfo {

    public static final Integer IS_COMPLETED_NO = 0;
    public static final Integer IS_COMPLETED_YES = 1;

    public static final Integer IS_COVERED_NO = 0;
    public static final Integer IS_COVERED_YES = 1;

    /**
     * 量表ID
     */
    @Id
    @JsonInclude(Include.NON_NULL)
    private String id;

    /** 表单ID */
    private String formId;

    /** 表单名称 */
    private String formName;

    /** 金数据表单结果ID */
    private String serialNumber;

    /** 医生ID */
    private Long doctorId;

    /** 患者ID */
    private Long patientId;

    /**
     * 是否收集完（量表信息+患者信息）,0.否 1.是
     */
    private Integer isCompleted;

    /** 量表患者信息 */
    private ScalePatient patient;

    /** 表单问题和答案 */
    private List<ScaleQA> qaList;
    /**
     * 扩展ID
     */
    private String extId;
    /**
     *编号
     */
    private String sceneId;
    /**
     *数据来源（1-医生填写，2-患者填写（默认））
     */
    private Integer source;
    /**
     *是否被覆盖(0-未覆盖；1-已覆盖)
     */
    private Integer covered;
    /**
     * 缓存中key
     */
    private String scaleKey;

    /** 创建时间 */
    private Date createTime;

    /** 更新时间 */
    private Date updateTime;

    public String getScaleKey() {
        return scaleKey;
    }

    public void setScaleKey(String scaleKey) {
        this.scaleKey = scaleKey;
    }

    public String getExtId() {
        return extId;
    }

    public void setExtId(String extId) {
        this.extId = extId;
    }

    public String getSceneId() {
        return sceneId;
    }

    public void setSceneId(String sceneId) {
        this.sceneId = sceneId;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }

    public Integer getCovered() {
        return covered;
    }

    public void setCovered(Integer covered) {
        this.covered = covered;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getFormId() {
        return formId;
    }

    public void setFormId(String formId) {
        this.formId = formId;
    }

    public String getFormName() {
        return formName;
    }

    public void setFormName(String formName) {
        this.formName = formName;
    }

    public String getSerialNumber() {
        return serialNumber;
    }

    public void setSerialNumber(String serialNumber) {
        this.serialNumber = serialNumber;
    }

    public Integer getIsCompleted() {
        return isCompleted;
    }

    public void setIsCompleted(Integer isCompleted) {
        this.isCompleted = isCompleted;
    }

    public ScalePatient getPatient() {
        return patient;
    }

    public void setPatient(ScalePatient patient) {
        this.patient = patient;
    }

    public List<ScaleQA> getQaList() {
        return qaList;
    }

    public void setQaList(List<ScaleQA> qaList) {
        this.qaList = qaList;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Long getDoctorId() {
        return doctorId;
    }

    public void setDoctorId(Long doctorId) {
        this.doctorId = doctorId;
    }

    public Long getPatientId() {
        return patientId;
    }

    public void setPatientId(Long patientId) {
        this.patientId = patientId;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

}
